#!/usr/bin/env python

import os
import resource.string.app as r

class Meta(object):
    """Meta class"""
    
    def __init__(self, **kw):
        self.name = r.name
        self.description = r.description
        self.long_description = r.description
        self.version = r.version.number
        self.histories = r.histories
        d = self.histories[self.version]
        self.trademarks = r.blessing
        self.copyright = r.copyright
        self.company_name = r.company.name
        self.comments = r.blessing
        self.author = r.author
        self.author_email = r.author.email
        self.maintainer = r.author.name
        self.maintainer_email = r.author.email
        self.long_version = r.version.human
        self.date = r.date
        
        # Required by py2exe
        self.script = '%s.py' % r.name.lower()
        path = os.path.join(os.getcwdu(), "resource", "icon",
                            'app.ico')
        self.icon_resources = [(1, path)]
        self.dest_base = r.name

        self.__dict__.update(kw)
